Get a list of available clients for token
This request is used to get a list of clients, available for this token.
Request syntax
GET https://b2b-api.go.yandex.ru/integration/2.0/auth/list
Request headers
Authorization: Bearer <OAuth-token>
OAuth access token. The steps to get a token are described in Getting started.
Response field description
Responses may contain the following fields:
| Field | Description | Format |
|---|---|---|
clients |
Array clients of objects with information about clients. | Array of objects |
Structure of the clients array element:
| Field | Description | Format |
|---|---|---|
client_id |
ID of the client. | String |
name |
Name of the client. | String |
role |
Role of the client. | String |
Request example
GET https://b2b-api.go.yandex.ru/integration/2.0/auth/list
...
Authorization: Bearer <OAuth-token>
Response example
An example response to this request looks like this:
{
"clients": [
{
"client_id": "beed...e542c",
"name": "user-name",
"role": "client"
}
]
}
Возможные коды ответа
Response codes
The response to this request may contain the following standard HTTP codes:
200: Request completed successfully.400: An unknown parameter or a parameter with an invalid value was passed in the request.401: The OAuth token is incorrect.